﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001E1 RID: 481
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChangeLineupLeaderCsReq : IMessage<ChangeLineupLeaderCsReq>, IMessage, IEquatable<ChangeLineupLeaderCsReq>, IDeepCloneable<ChangeLineupLeaderCsReq>, IBufferMessage
	{
		// Token: 0x1700065A RID: 1626
		// (get) Token: 0x060015CA RID: 5578 RVA: 0x0003E1E4 File Offset: 0x0003C3E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChangeLineupLeaderCsReq> Parser
		{
			get
			{
				return ChangeLineupLeaderCsReq._parser;
			}
		}

		// Token: 0x1700065B RID: 1627
		// (get) Token: 0x060015CB RID: 5579 RVA: 0x0003E1EB File Offset: 0x0003C3EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChangeLineupLeaderCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700065C RID: 1628
		// (get) Token: 0x060015CC RID: 5580 RVA: 0x0003E1FD File Offset: 0x0003C3FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChangeLineupLeaderCsReq.Descriptor;
			}
		}

		// Token: 0x060015CD RID: 5581 RVA: 0x0003E204 File Offset: 0x0003C404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeLineupLeaderCsReq()
		{
		}

		// Token: 0x060015CE RID: 5582 RVA: 0x0003E20C File Offset: 0x0003C40C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeLineupLeaderCsReq(ChangeLineupLeaderCsReq other) : this()
		{
			this.slot_ = other.slot_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060015CF RID: 5583 RVA: 0x0003E231 File Offset: 0x0003C431
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeLineupLeaderCsReq Clone()
		{
			return new ChangeLineupLeaderCsReq(this);
		}

		// Token: 0x1700065D RID: 1629
		// (get) Token: 0x060015D0 RID: 5584 RVA: 0x0003E239 File Offset: 0x0003C439
		// (set) Token: 0x060015D1 RID: 5585 RVA: 0x0003E241 File Offset: 0x0003C441
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x060015D2 RID: 5586 RVA: 0x0003E24A File Offset: 0x0003C44A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChangeLineupLeaderCsReq);
		}

		// Token: 0x060015D3 RID: 5587 RVA: 0x0003E258 File Offset: 0x0003C458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChangeLineupLeaderCsReq other)
		{
			return other != null && (other == this || (this.Slot == other.Slot && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060015D4 RID: 5588 RVA: 0x0003E288 File Offset: 0x0003C488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060015D5 RID: 5589 RVA: 0x0003E2C7 File Offset: 0x0003C4C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060015D6 RID: 5590 RVA: 0x0003E2CF File Offset: 0x0003C4CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060015D7 RID: 5591 RVA: 0x0003E2D8 File Offset: 0x0003C4D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Slot != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Slot);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060015D8 RID: 5592 RVA: 0x0003E30C File Offset: 0x0003C50C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060015D9 RID: 5593 RVA: 0x0003E34A File Offset: 0x0003C54A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChangeLineupLeaderCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060015DA RID: 5594 RVA: 0x0003E37B File Offset: 0x0003C57B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060015DB RID: 5595 RVA: 0x0003E384 File Offset: 0x0003C584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Slot = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040008FB RID: 2299
		private static readonly MessageParser<ChangeLineupLeaderCsReq> _parser = new MessageParser<ChangeLineupLeaderCsReq>(() => new ChangeLineupLeaderCsReq());

		// Token: 0x040008FC RID: 2300
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008FD RID: 2301
		public const int SlotFieldNumber = 3;

		// Token: 0x040008FE RID: 2302
		private uint slot_;
	}
}
